package com.example.canal.conf;

/**
 * @author maowei
 * @date 2020/9/7
 * @time 14:34
 */
public class CanalConstants {

    public static final String DEFAULT_HOST = "127.0.0.1";

    public static final int DEFAULT_PORT = 1111;

    public static final String DEFAULT_DESTINATION = "example";

    public static final String DEFAULT_USERNAME = "canal";

    public static final String DEFAULT_PASSWORD = "canal";

    public static final Long DEFAULT_USERID = -1L;

    public static final int DEFAULT_BATCH_SIZE = 1000;

    public static final String DEFAULT_FILTER = ".*\\..*";

    public static final boolean DEFAULT_CUSTOM = true;

    public static final String UNITY_TABLE = "common_table";

    public static final String UNITY_SCHEMA = "common_table";

    /**
     * 多过滤器 逗号分隔
     */
    public static final String DEFAULT_FILTER_SPLIT = ",";

    /**
     * 数据库与表名直接 点号分隔
     */
    public static final String DEFAULT_TABLE_SPLIT = "\\.";


    public static final Integer MQ_ERROR_STATUS_FAIL = 1;


    public static final Integer MQ_ACTION_TYPE_SEND = 1;

    public static final Integer MQ_ACTION_TYPE_RECEIVE = 2;


    public static final String NEXT_DEST = "patient";

    public static final String APP_NAME = "canal-data-sync";
}
